package Modelo;

public class PsCrseComponent extends BaseModelo
{
  private static String tableName = "PS_CRSE_COMPONENT";
  private static EstructuraFila estructuraFila = new EstructuraFila();

  public static void setEstructuraFila(EstructuraFila aEstructuraFila)
  {
    estructuraFila = aEstructuraFila;
  }

  public static String getTableName()
  {
    return tableName;
  }

  public static EstructuraFila getEstructuraFila()
  {
    return estructuraFila;
  }

  public PsCrseComponent(String crse_id)
  {
    blanquearCamposObligatorios(estructuraFila);

    setCrse_id(crse_id);
    setEffdt(firstDayOfCurentYear());
    setComponent("CLS");
    setOptional_section("N");
    setDefault_sect_size("35");
    setFinal_exam("N");
    setExam_seat_spacing("1");
    setDyn_dt_include("N");
    setAuto_create_cmpnt("N");
    setAttend_generate("N");
  }

  public void setCrse_id(String crse_id) {
    asignarCampo("CRSE_ID", crse_id);
  }

  public void setEffdt(String effdt) {
    asignarCampo("EFFDT", effdt);
  }

  public void setComponent(String component) {
    asignarCampo("COMPONENT", component);
  }

  public void setOptional_section(String optional_section) {
    asignarCampo("OPTIONAL_SECTION", optional_section);
  }

  public void setDefault_sect_size(String default_sect_size) {
    asignarCampo("DEFAULT_SECT_SIZE", default_sect_size);
  }

  public void setContact_hours(String contact_hours) {
    asignarCampo("CONTACT_HOURS", contact_hours);
  }

  public void setFinal_exam(String final_exam) {
    asignarCampo("FINAL_EXAM", final_exam);
  }

  public void setExam_seat_spacing(String exam_seat_spacing) {
    asignarCampo("EXAM_SEAT_SPACING", exam_seat_spacing);
  }

  public void setDyn_dt_include(String dyn_dt_include) {
    asignarCampo("DYN_DT_INCLUDE", dyn_dt_include);
  }

  public void setAuto_create_cmpnt(String auto_create_cmpnt) {
    asignarCampo("AUTO_CREATE_CMPNT", auto_create_cmpnt);
  }

  public void setAttend_generate(String attend_generate) {
    asignarCampo("ATTEND_GENERATE", attend_generate);
  }

  public void setWeek_workload_hrs(String week_workload_hrs) {
    asignarCampo("WEEK_WORKLOAD_HRS", week_workload_hrs);
  }

  public void setOee_workload_hrs(String oee_workload_hrs) {
    asignarCampo("OEE_WORKLOAD_HRS", oee_workload_hrs);
  }

  public void setLms_file_type(String lms_file_type) {
    asignarCampo("LMS_FILE_TYPE", lms_file_type);
  }

  public AtributoValor getCrse_id() {
    return obtenerAtributoValor("CRSE_ID");
  }

  public AtributoValor getEffdt() {
    return obtenerAtributoValor("EFFDT");
  }

  public AtributoValor getComponent() {
    return obtenerAtributoValor("COMPONENT");
  }

  public AtributoValor getOptional_section() {
    return obtenerAtributoValor("OPTIONAL_SECTION");
  }

  public AtributoValor getDefault_sect_size() {
    return obtenerAtributoValor("DEFAULT_SECT_SIZE");
  }

  public AtributoValor getContact_hours() {
    return obtenerAtributoValor("CONTACT_HOURS");
  }

  public AtributoValor getFinal_exam() {
    return obtenerAtributoValor("FINAL_EXAM");
  }

  public AtributoValor getExam_seat_spacing() {
    return obtenerAtributoValor("EXAM_SEAT_SPACING");
  }

  public AtributoValor getDyn_dt_include() {
    return obtenerAtributoValor("DYN_DT_INCLUDE");
  }

  public AtributoValor getAuto_create_cmpnt() {
    return obtenerAtributoValor("AUTO_CREATE_CMPNT");
  }

  public AtributoValor getAttend_generate() {
    return obtenerAtributoValor("ATTEND_GENERATE");
  }

  public AtributoValor getWeek_workload_hrs() {
    return obtenerAtributoValor("WEEK_WORKLOAD_HRS");
  }

  public AtributoValor getOee_workload_hrs() {
    return obtenerAtributoValor("OEE_WORKLOAD_HRS");
  }

  public AtributoValor getLms_file_type() {
    return obtenerAtributoValor("LMS_FILE_TYPE");
  }

  static
  {
    estructuraFila.adicionar("CRSE_ID", "S", true, "getCrse_id");
    estructuraFila.adicionar("EFFDT", "D", true, "getEffdt");
    estructuraFila.adicionar("COMPONENT", "S", true, "getComponent");
    estructuraFila.adicionar("OPTIONAL_SECTION", "S", true, "getOptional_section");
    estructuraFila.adicionar("DEFAULT_SECT_SIZE", "N", true, "getDefault_sect_size");
    estructuraFila.adicionar("CONTACT_HOURS", "N", true, "getContact_hours");
    estructuraFila.adicionar("FINAL_EXAM", "S", true, "getFinal_exam");
    estructuraFila.adicionar("EXAM_SEAT_SPACING", "N", true, "getExam_seat_spacing");
    estructuraFila.adicionar("DYN_DT_INCLUDE", "S", true, "getDyn_dt_include");
    estructuraFila.adicionar("AUTO_CREATE_CMPNT", "S", true, "getAuto_create_cmpnt");
    estructuraFila.adicionar("ATTEND_GENERATE", "S", true, "getAttend_generate");
    estructuraFila.adicionar("WEEK_WORKLOAD_HRS", "N", true, "getWeek_workload_hrs");
    estructuraFila.adicionar("OEE_WORKLOAD_HRS", "N", true, "getOee_workload_hrs");
    estructuraFila.adicionar("LMS_FILE_TYPE", "S", true, "getLms_file_type");
  }
}